@extends('Admin.layout.layout')
@section('title','门户管理')
@section('home','板块管理')
@section('weizhi','查看')
@section('con')
<!-- 子版块列表 -->
<table class="table table-striped table-advance table-hover">
	<tbody>
	  <tr>
	     <th><i class="icon_profile"></i> 序号</th>
	     <th><i class="icon_calendar"></i> 板块名称</th>
	     <th><i class="icon_mail_alt"></i> img</th>
	     <th><i class="icon_pin_alt"></i>父级板块</th>
	     <th><i class="icon_mobile"></i> path</th>
	     <th><i class="icon_cogs"></i> 操作</th>
	  </tr>
	  @foreach($types as $k=>$v)
	  <tr>
	     <td>{{$count++}}</td>
	     <td>{{$v->name}}</td>
	     <td>{{$v->img}}</td>
	     <td>{{$pname}}</td>
	     <td>{{$v->path}}</td>
	     <td>
	      <div class="btn-group">
	      	<!-- 查看板块下新闻详情 id=portalpost的tid-->
	          <a class="btn btn-primary" href="{{url('admin/portalpost/sscan',['id'=>$v->id])}}">查看</a>
	          <a class="btn btn-success" href="{{url('admin/portaltype/edit',['id'=>$v->id,'pid'=>$v->pid])}}">修改</a>
	          <a class="btn btn-danger" href="{{url('admin/portaltype/delete',['id'=>$v->id])}}">删除</a>
	      </div>
	      </td>
	  </tr>
      @endforeach                  
	</tbody>
</table>
<span style="color:red;font-size: 12px;">{{session('success')}}</span>
<span style="color:red;font-size: 12px;">{{session('error')}}</span>

@endsection